package com.sinoair.service.impl;

import com.sinoair.domain.Menu;
import com.sinoair.repository.MenuRepository;
import com.sinoair.service.MenuService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class MenuServiceImpl implements MenuService {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private MenuRepository menuRepository;

    @Override
    public Menu save(Menu menu) {
        logger.debug("保存菜单..............");
        Menu m = menuRepository.save(menu);
        return m;
    }
}
